package com.atguigu.gulimall.shares.dto;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import okhttp3.*;
import org.apache.http.HttpResponse;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

/**
 * @Author : 刘思盖
 * @Date : 2022/6/14 12:01
 */
@Data
public class SharesDto {
    private String sharesName;
    /**当前价格*/
    private String currentPrice;
    /**今日开盘价*/
    private String todayOpenPrice;
    /**昨日收盘价*/
    private String yesterdayClosePrice;
    /**今日最高价*/
    private String todayHighPrice;
    /**今日最低价*/
    private String todayMinPrice;
    /**涨跌幅：(当前价-昨日收盘价)÷当前价  */
    private String fluctuationRange;
    
    private static String signKey = "da294e2b8bad4f3062c2436ccf277416";
    private static String secretKey = "G9RR1-gTTcqYdWmjQaRCul4KvayP7sU-ALTkzLC9JAw";

    public static void main(String[] args) throws Exception {
        testShoplazza();
    }

    /**
     * 测试发送请求到ShopLazza
     * @throws IOException
     */
    private static void testShoplazza() throws IOException {

    }
}
